public class ClassTest{
	public static void main(String[] args) throws Exception{
		Class<?> classType = Child.class;
		System.out.println(classType);
		classType = classType.getSuperclass();
		System.out.println(classType);
		classType = classType.getSuperclass();
		System.out.println(classType);
		classType = classType.getSuperclass();
		System.out.println(classType);		
	}
}



class Parent
{
}
class Child extends Parent
{
}